import request from "../utils/request";

// 注册
export function userReg(data) {
  return request({
    url: "/dev/reg",
    method: "POST",
    data,
  });
}

// 登录
export function userLogin(username, password) {
  return request({
    url: "/dev/login",
    method: "POST",
    data: { username, password },
  });
}

// 退出
export function userOut() {
  return request({
    url: "/dev/logout",
    method: "POST",
  });
}
